package com.xydtech.ecard.config.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 电子名片新闻频道对象 ecard_news_channel_list
 *
 * @author JHON
 * @date 2022-04-08
 */
public class EcardNewsChannelList extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /** ID */
    private Long id;
    /** 频道编号 */
    private String channelId;

    /** 频道名称 */
    @Excel(name = "频道名称")
    private String name;

    /** 法人机构 */
    private Long deptId;

    /** 状态            0-停用            1-启用 */
    @Excel(name = "状态            0-停用            1-启用")
    private String sts;
    /** 新闻更新方式 1-自动 2-手动 */
    @Excel(name = "新闻更新方式 1-自动 2-手动")
    private String updateWay;
    /**排序*/
    private Long sort;
    private List<EcardNewsContentList> ecardNewsContentList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public String getSts() {
        return sts;
    }

    public List<EcardNewsContentList> getEcardNewsContentList() {
        return ecardNewsContentList;
    }

    public void setEcardNewsContentList(List<EcardNewsContentList> ecardNewsContentList) {
        this.ecardNewsContentList = ecardNewsContentList;
    }

    public String getUpdateWay() {
        return updateWay;
    }

    public void setUpdateWay(String updateWay) {
        this.updateWay = updateWay;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("channelId", getChannelId())
                .append("name", getName())
                .append("deptId", getDeptId())
                .append("sts", getSts())
                .append("updateWay", getUpdateWay())
                .append("ecardNewsContentList", getEcardNewsContentList())
                .append("sort", getSort())
                .toString();
    }
}
